package datas;

import java.text.DateFormat;
import java.util.Calendar;
import java.util.Date;

public class Date4
{
	public static void main(String[] args)
	{
		Calendar c = Calendar.getInstance();
		c.set(2008, 9,3);
		Date x = c.getTime();
		System.out.println(x);
		
		DateFormat array[] = new DateFormat[4];
		array[0] = DateFormat.getInstance();
		array[1] = DateFormat.getDateInstance(DateFormat.SHORT);
		array[2] = DateFormat.getDateInstance(DateFormat.MEDIUM);
		array[3] = DateFormat.getDateInstance(DateFormat.LONG);
		
		for (DateFormat dateFormat : array)
		{
			System.out.println(dateFormat.format(x));
		}
	}
}

